var t = getApp();

Component({
    properties: {
        items: {
            type: null
        }
    },
    data: {},
    methods: {
        toClassify: function(t) {
            var a = t.currentTarget.dataset.id, e = t.currentTarget.dataset.name;
            this.data.skipshow ? wx.redirectTo({
                url: "/packageC/o2o/o2oCategory/o2oCategory?id=" + a + "&city=" + this.data.cityData + "&point=" + JSON.stringify(this.data.pointData) + "&name=" + e
            }) : wx.navigateTo({
                url: "/packageC/o2o/o2oCategory/o2oCategory?id=" + a + "&city=" + this.data.cityData + "&point=" + JSON.stringify(this.data.pointData) + "&name=" + e
            });
        },
        toPunch: function(a) {
            var e = a.currentTarget.dataset.id, o = t.getNetAddresss("plugin.store-attendance.frontend.member.attendance");
            t._getNetWork({
                url: o,
                data: {
                    store_id: e
                },
                success: function(t) {
                    var a = t.data;
                    a.result, wx.showToast({
                        title: a.msg,
                        duration: 1e3,
                        icon: "none"
                    });
                },
                fail: function(t) {}
            });
        },
        goToAdress: function(a) {
            var e = a.currentTarget.dataset.items.latitude, o = a.currentTarget.dataset.items.longitude, r = a.currentTarget.dataset.items.store_name, i = t.BMapTransqqMap(parseFloat(o), parseFloat(e));
            wx.openLocation({
                latitude: i.lat,
                longitude: i.lng,
                scale: 18,
                name: r
            });
        },
        toGood: function(t) {
            var a = t.currentTarget.dataset.goods_id;
            wx.navigateTo({
                url: "/packageA/detail_v2/detail_v2?id=" + a
            });
        }
    }
});